import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';

import fire from '@dfeidao/atom-web/msg/fire';
import set_node_cls from '@dfeidao/atom-web/ui/set-node-cls';

export default async function a007(fd: IFeidaoAiBrowserComponent) {// 关闭弹框
	// todo
	console.log('zj-000007:a007----start');
	// 关闭设置特性关联窗口
	fd.data.node.style.display = 'none';
	const n = fd.data.node.querySelector<HTMLDivElement>('[data-id="setadd"]');
	set_node_cls(n, 'display-n', true);
	fd.data.node.querySelector<HTMLInputElement>('[data-id="hidden_source_feature_code"]').value = "";
	fd.data.node.querySelector<HTMLInputElement>('[data-id="hidden_source_feature_name"]').value = "";
	fd.data.node.querySelector<HTMLInputElement>('[data-id="control_data"]').value = "";
	fd.data.node.querySelector<HTMLSelectElement>('[data-id="company"]').value = "请选择";
	fd.data.node.querySelector<HTMLSelectElement>('[data-id="factory"]').value = "";// 工厂下拉框目前没有数据
	fd.data.node.querySelector<HTMLSelectElement>('[data-id="control"]').value = "请选择";
	fire('zj-000006', 'a005');
	console.log('zj-000007:a007----end');
}
